package com.dly.blog.provider;

import com.dly.blog.domain.Permission;
import com.dly.blog.mapper.PermissionMapper;
import com.dly.blog.provider.user.PermissionProvider;
import com.dly.blog.service.PermissionService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author: DaiLiYu
 * @Date: 2023/7/12 23:39
 */
@AllArgsConstructor
@Component
public class PermissionProviderImpl implements PermissionProvider {


    private final PermissionMapper permissionMapper;

    @Override
    public List<Permission> searchAllByRoleIds(List<String> roleIds) {
        return permissionMapper.searchAllByRoleIds(roleIds);
    }


}
